package cloud.study.eurekafeignclient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import po.User;

@RestController
public class HiController {
    @Autowired
    private HiService hiService;

    @RequestMapping("/sayHi")
    public String sayHi(String name) {
        return hiService.sayHi(name);
    }

    @RequestMapping("/testPo")
    public String testPo(User user) {
        return hiService.testPo(user);
    }
}
